<!doctype html>
<html lang="en-US">

<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>品牌建设、传播及市场营销 - 华平投资</title>
  <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
  <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="all">
  <link rel="stylesheet" href="css/iconfont.css" type="text/css" media="all">
  <link rel="stylesheet" href="css/app.min.css" type="text/css" media="all" />
</head>

<body class="home fixed-nav">
  <div id="app">
    <header class="banner">
      <div class="navbar navbar-expand-xl">
        <a class="navbar-brand" href="index.html">Warburg Pincus</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="menu-1" aria-expanded="false"
          aria-label="Toggle navigation" data-target="#menu-1">
          <svg viewBox="0 0 800 600">
            <path d="M300,220 C300,220 520,220 540,220 C740,220 640,540 520,420 C440,340 300,200 300,200" id="top">
            </path>
            <path d="M300,320 L540,320" id="middle"></path>
            <path d="M300,210 C300,210 520,210 540,210 C740,210 640,530 520,410 C440,330 300,190 300,190" id="bottom"
              transform="translate(480, 320) scale(1, -1) translate(-480, -318) "></path>
          </svg>
        </button>
        <div class="navbar--container collapse" id="menu-1">
          <ul class="nav">
            <li class="menu-item">
              <a title="Home Page" href="index.html">Home Page<span>首页</span></a></li>
          </ul>
        </div>
      </div>
    </header>
    <div class="wrap">
      <div class="container">
        <div class="row">
          <div class="col-12">
            <p class="h3 text-primary mt-5">Communications & Marketing</p>
            <p class="h3 text-primary">品牌建设、传播及市场营销</p>
            <div class="row support">

              <div class="col-12 col-md-4" v-for="o in obj">
                <a :href="getchildren(o)">
                  <div class="ico">
                    <img :src="o.logo" alt="">
                  </div>
                  <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                  <div class="title">
                    <span class="text-size-8" v-text="o.categoryNameEn"></span>
                    <span class="text-size-8" v-text="o.categoryName"></span>
                  </div>
                </a>
              </div>
              <!-- <div class="col-12 col-md-4">
              <a href="list2.html">
                <div class="ico">
                  <img src="images/ico2.jpg" alt="">
                </div>
                <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                <div class="title">
                  <span class="text-size-8">Agencies and Partners</span>
                  <span class="text-size-8">公关公司与合作伙伴</span>
                </div>
              </a>
            </div>
            <div class="col-12 col-md-4">
              <a href="list2.html">
                <div class="ico">
                  <img src="images/ico3.jpg" alt="">
                </div>
                <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                <div class="title">
                  <span class="text-size-8">Brand Guidance and Design</span>
                  <span class="text-size-8">品牌规范与实践</span>
                </div>
              </a>
            </div>
            <div class="col-12 col-md-4">
              <a href="list2.html">
                <div class="ico">
                  <img src="images/ico4.jpg" alt="">
                </div>
                <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                <div class="title">
                  <span class="text-size-8">Issues and Crisis Management</span>
                  <span class="text-size-8">风险管理和危机公关</span>
                </div>
              </a>
            </div>
            <div class="col-12 col-md-4">
              <a href="#">
                <div class="ico">
                  <img src="images/ico5.jpg" alt="">
                </div>
                <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                <div class="title">
                  <span class="text-size-8">Communications for Strategic Initiatives</span>
                  <span class="text-size-8">战略项目传播策略</span>
                </div>
              </a>
            </div>
            <div class="col-12 col-md-4">
              <a href="list2.html">
                <div class="ico">
                  <img src="images/ico6.jpg" alt="">
                </div>
                <div class="arrow"><span class="iconfont icon-arrow"></span></div>
                <div class="title">
                  <span class="text-size-8">ESG</span>
                  <span class="text-size-8">环境、社会责任与公司治理</span>
                </div>
              </a>
            </div> -->
            </div>
          </div>
        </div>

      </div><!-- /.content -->
    </div><!-- /.wrap -->
    <footer class="content-info">
      <p>© 2020 Warburg Pincus LLC. 版权所有。</p>
    </footer>
  </div>
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/app.js"></script>
  <script src="js/vue.js"></script>
  <script>

    var v = new Vue({
      el: '#app',
      data: {
        obj: []
      },
      created: function () {
        var self = this;
        var id = this.getQueryString("id");
        $.ajax({
          url: '/api/category/list',
          type: 'post',
          data: {
            parentId: id
          },
          dataType: 'json'
        }).then(function (res) {

          if (res.code == 500) {
            location.href = "login.html";
            return;
          }

          console.log(res);
          // self.obj = res.data;
          var data = res.data;
          var p = []
          for (i in data) {
            var cf = data[i].description;
            if (cf) {
              var jsonObj = $.parseJSON(cf);
              data[i]["cf"] = jsonObj;
            }
            if (data[i].parentId == id.toString())
              p.push(data[i]);
          }
          self.obj = p;

        }).fail(function () {
          console.log('失败');
        })
      },
      watch: {
        obj: function () {
          this.$nextTick(function () {
            /*现在数据已经渲染完毕*/
            this.initlist();
          })
        }
      },
      methods: {
        initlist: function () {

        },
        getQueryString: function (name) {
          var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
          var r = window.location.search.substr(1).match(reg);
          if (r != null) return unescape(r[2]); return null;
        },
        getchildren: function (obj) {
          var id = obj.categoryId;
          return obj.cf.template + "?id=" + id;
        }

      }
    });

  </script>
</body>

</html>